package jiali.test.easyfactory;

public class Main {
    public static void main(String[] args) {

        Operation add = CalculateFactory.createOperation("+");

        try {
            double result = add.getResult("1", "2");
            System.out.println(result);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }

    }
}
